import Vue from 'vue'
import Router from 'vue-router'

const Login = () => import(/* webpackChunkName: "login" */ '../view/login/index')   //登录
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/login',
        name: 'login',
        component: Login,
    }, {
        path: '/index',
        name: 'home',
        component: () => import(/* webpackChunkName: "home" */ '../view/home/index')   //首页-综合,
    }, {
        path: '/burst',
        name: 'burst',
        component: () => import(/* webpackChunkName: "home" */ '../view/home/burst')   //首页-爆抢,
    }, {
        path: '/otherType',
        name: 'otherType',
        component: () => import(/* webpackChunkName: "home" */ '../view/home/otherType')   //首页-亲子时光，周边娱乐等,
    }, {
        path: '/goodsDetails',
        name: 'goodsDetails',
        component: () => import(/* webpackChunkName: "goods" */ '../view/goods/goodsDetails')   //商品详情,
    }, {
        path: '/goodsSearchList',
        name: 'goodsSearchList',
        component: () => import(/* webpackChunkName: "goods" */ '../view/goods/goodsSearchList')   //商品搜索列表,
    }, {
        path: '/evaluationList',
        name: 'evaluationList',
        component: () => import(/* webpackChunkName: "order" */ '../view/goods/evaluationList')   //评价列表,
    }, {
        path: '/comfirmOrder',
        name: 'comfirmOrder',
        component: () => import(/* webpackChunkName: "order" */ '../view/order/comfirmOrder')   //确认订单,
    }, {
        path: '/orderDetails',
        name: 'orderDetails',
        component: () => import(/* webpackChunkName: "order" */ '../view/order/orderDetails')   //订单详情,
    }, {
        path: '/todoUsed',
        name: 'todoUsed',
        component: () => import(/* webpackChunkName: "order" */ '../view/order/todoUsed')   //订单详情-待使用,
    },{
        path: '/edditAddress',
        name: 'edditAddress',
        component: () => import(/* webpackChunkName: "order" */ '../view/order/edditAddress')   //编辑商品邮寄地址,
    },
        {
            path: '/evaluation',
            name: 'evaluation',
            component: () => import(/* webpackChunkName: "login" */ '../view/order/evaluation')   //我的订单---评价商品,
        },
        {
            path: '/historyHot',
            name: 'historyHot',
            component: () => import(/* webpackChunkName: "login" */ '../view/historyHot/index')   //历史爆款,
        },
        {
            path: '/yuyueProduct',
            name: 'yuyueProduct',
            component: () => import(/* webpackChunkName: "login" */ '../view/yuyueProduct/yuyueProduct')   //预约产品,
        },
        {
            path: '/writeYuyue',
            name: 'writeYuyue',
            component: () => import(/* webpackChunkName: "login" */ '../view/yuyueProduct/writeYuyue')   //预约产品--预约信息填写,
        },
        {
            path: '/yuyueSuccess',
            name: 'yuyueSuccess',
            component: () => import(/* webpackChunkName: "login" */ '../view/yuyueProduct/yuyueSuccess')   //预约产品--预约成功信息,
        },
        {
            path: '/writeYuyuePhone',
            name: 'writeYuyuePhone',
            component: () => import(/* webpackChunkName: "login" */ '../view/yuyueProduct/writeYuyuePhone')   //预约产品--预约填写手机号,
        },
        {
            path: '/personCenter',
            name: 'personCenter',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/personCenter')   //个人中心,
        },
        {
            path: '/vipCenter',
            name: 'vipCenter',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/vipCenter')   //成为会员,
        },
        {
            path: '/myOrder',
            name: 'myOrder',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/myOrder')   //我的订单,
        },
        {
            path: '/message',
            name: 'message',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/myMessage/message')   //我的消息,
        },
        {
            path: '/messageDetail',
            name: 'messageDetail',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/myMessage/messageDetail')   //我的消息详情,
        },
        {
            path: '/myYuyue',
            name: 'myYuyue',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/myYuyue')   //我的预约,
        },
        {
            path: '/myWallet',
            name: 'myWallet',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/myWallet/myWallet')   //我的钱包,
        },
        {
            path: '/exchange',
            name: 'exchange',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/myWallet/exchange')   //我的钱包--立即提现
        },
        {
            path: '/tixian',
            name: 'tixian',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/myWallet/tixian')   //我的钱包--兑换现金,
        },
        {
            path: '/seeZh',
            name: 'seeZh',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/zhanghao/seeZh')   //账号安全,
        },
        {
            path: '/changePhone',
            name: 'changePhone',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/zhanghao/changePhone')   //账号安全--更换手机号,
        },
        {
            path: '/changePwd',
            name: 'changePwd',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/zhanghao/changePwd')   //账号安全--更换密码,
        },
        {
            path: '/editPerson',
            name: 'editPerson',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/editPerson')   //编辑个人信息,
        },
        {
            path: '/myFootprint',
            name: 'myFootprint',
            component: () => import(/* webpackChunkName: "login" */ '../view/personCenter/myFootprint')   //我的足迹,
        },

    ]
})
